package com.ruoyi.media.mediaChannelsData.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.media.mediaAccount.domain.bo.MediaAccountBo;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 自媒体账号列
 *
 * @author dqw
 * @date 2023-03-23
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/media/mediaAccountData")
public class MediaAccountDataController extends BaseController {


    /**
     * 根据加热平台账号获取某一个账号的数据
     */
    @SaCheckPermission("media:mediaAccount:list")
    @PostMapping("/getChannelsByAccount")
    public R<?> getChannelsByAccount(@RequestBody MediaAccountBo bo) {
        System.out.println(bo);
        return R.ok("获取账号的数据！");
    }

}
